package org.openwebtop.sunshine.bo;

import java.util.List;

import org.openwebtop.sunshine.dao.CodeReviewProjcetDAO;
import org.openwebtop.sunshine.dao.ComponentDAO;
import org.openwebtop.sunshine.model.CodeReviewProject;
import org.openwebtop.sunshine.model.Component;

public class DashboardBO {
	private ComponentDAO componentDAO;
	private CodeReviewProjcetDAO codeReviewProjectDAO;

	public Component getComponent(int id) throws Exception {
		return componentDAO.selectComponent(id);
	}

	public List<Component> getComponentList() throws Exception {
		return componentDAO.selectComponentList();
	}

	public List<CodeReviewProject> getCodeReviewProjectList() throws Exception {
		return codeReviewProjectDAO.selectCodeReviewProjectList();
	}

	public void setComponentDAO(ComponentDAO componentDAO) {
		this.componentDAO = componentDAO;
	}

	public void setCodeReviewProjectDAO(CodeReviewProjcetDAO codeReviewProjectDAO) {
		this.codeReviewProjectDAO = codeReviewProjectDAO;
	}

}
